package com.ikkong.biz.model;

import org.apache.bval.constraints.NotEmpty;
import org.beetl.sql.core.annotatoin.AssignID;
import org.beetl.sql.core.annotatoin.Table;

import com.ikkong.core.annotation.BindID;
import com.ikkong.core.model.BaseModel;

import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.SeqID;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;

import javax.validation.constraints.NotNull;

import java.util.List;

/**
 * Generated by Blade.
 * 2016-11-17 15:53:59
 */
@Table(name = "tb_student")
@BindID(name = "id")
@SuppressWarnings("serial")
public class Student extends BaseModel implements WeixinUser  {
    //  4
    private java.lang.Integer id;
    // 成员名称 12
    @Excel(name = "姓名", isImportField = "true")
    @NotEmpty(message = "姓名不能为空")
    private java.lang.String name;

    // 部门id 4
    private java.lang.Integer dept_id;
    // 微信的OPEN_ID 12
    private java.lang.String open_id;

    // 电话号码 12
    @Excel(name = "手机号", isImportField = "true")
    @NotEmpty(message = "手机号不能为空")
    private java.lang.String mobile;

    // 班级 4
    private java.lang.Integer class_id;

    @Excel(name = "班级", isImportField = "true")
    @NotNull(message = "班级不能为空")
    private java.lang.String class_name;

    // 职位 12
    private java.lang.String position;

    // 性别 -6
    private java.lang.Integer gender;
    //  12
    private java.lang.String email;
    // 微信号 12
    private java.lang.String weixinid;
    // 头像地址 12
    private java.lang.String icon;
    // 上次登陆的CODE(为了解决重复发起刷新导致CODE丢失的问题) 12
    private java.lang.String last_code;
    //  93
    private java.util.Date ctime;
    //  93
    private java.util.Date utime;
    //  4
    private java.lang.Integer version;


    //
    @AutoID
    @SeqID(name = "SEQ_STUDENT")
//    @AssignID
    public java.lang.Integer getId() {
        return id;
    }

    public void setId(java.lang.Integer id) {
        this.id = id;
    }

    // 成员名称
    public java.lang.String getName() {
        return name;
    }

    public void setName(java.lang.String name) {
        this.name = name;
    }

    // 部门id
    public java.lang.Integer getDept_id() {
        return dept_id;
    }

    public void setDept_id(java.lang.Integer dept_id) {
        this.dept_id = dept_id;
    }

    // 微信的OPEN_ID
    public java.lang.String getOpen_id() {
        return open_id;
    }

    public void setOpen_id(java.lang.String open_id) {
        this.open_id = open_id;
    }

    // 电话号码
    public java.lang.String getMobile() {
        return mobile;
    }

    public void setMobile(java.lang.String mobile) {
        this.mobile = mobile;
    }

    // 班级
    public java.lang.Integer getClass_id() {
        return class_id;
    }

    public void setClass_id(java.lang.Integer class_id) {
        this.class_id = class_id;
    }

    // 职位
    public java.lang.String getPosition() {
        return position;
    }

    public void setPosition(java.lang.String position) {
        this.position = position;
    }

    // 性别
    public java.lang.Integer getGender() {
        return gender;
    }

    public void setGender(java.lang.Integer gender) {
        this.gender = gender;
    }

    //
    public java.lang.String getEmail() {
        return email;
    }

    public void setEmail(java.lang.String email) {
        this.email = email;
    }

    // 微信号
    public java.lang.String getWeixinid() {
        return weixinid;
    }

    public void setWeixinid(java.lang.String weixinid) {
        this.weixinid = weixinid;
    }

    // 头像地址
    public java.lang.String getIcon() {
        return icon;
    }

    public void setIcon(java.lang.String icon) {
        this.icon = icon;
    }

    // 上次登陆的CODE(为了解决重复发起刷新导致CODE丢失的问题)
    public java.lang.String getLast_code() {
        return last_code;
    }

    public void setLast_code(java.lang.String last_code) {
        this.last_code = last_code;
    }

    //
    public java.util.Date getCtime() {
        return ctime;
    }

    public void setCtime(java.util.Date ctime) {
        this.ctime = ctime;
    }

    //
    public java.util.Date getUtime() {
        return utime;
    }

    public void setUtime(java.util.Date utime) {
        this.utime = utime;
    }

    //
    public java.lang.Integer getVersion() {
        return version;
    }

    public void setVersion(java.lang.Integer version) {
        this.version = version;
    }

    public String getClass_name() {
        return class_name;
    }

    public void setClass_name(String class_name) {
        this.class_name = class_name;
    }


}
